package org.slf4j.impl;

import com.db.logging.MyLoggerFactory;
import org.slf4j.ILoggerFactory;
import org.slf4j.spi.LoggerFactoryBinder;

/**
 * @author nulls.narik
 */
public class StaticLoggerBinder  implements LoggerFactoryBinder {

    private final static StaticLoggerBinder THIS = new StaticLoggerBinder();

    public static StaticLoggerBinder getSingleton() {
        return THIS;
    }

    private final ILoggerFactory loggerFactory;

    private StaticLoggerBinder() {
        loggerFactory = new MyLoggerFactory();
    }

    @Override
    public ILoggerFactory getLoggerFactory() {
        return loggerFactory;
    }

    @Override
    public String getLoggerFactoryClassStr() {
        return "com.db.logging.MyLoggerFactory";
    }

}
